﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace @class
{
    class Program
    {
        static void Main(string[] args)
        {
            //定义一个员工类，存放用户的工号、姓名和部门信息；
            //定义两个构造函数，一个是无参；
            //一个有参构造函数，对类的属性进行初始化。

            //无参
            employee employee = new employee();
            employee.Userid = 1001;
            employee.Name = "张三";
            employee.Department = "软件部";
            employee.emp();

            //有参
            employee employee1 = new employee(1,"pp","cc");
            employee employee2 = new employee(2, "pp2", "还是cc");

            Console.ReadKey();

        }
    }
}
